/*******************************************************************************
 * Copyright (c) 2008 L.Carbonnaux.
 *******************************************************************************/
package org.lcx.taskvision.core.model;

import com.google.gdata.data.MediaContent;
import com.google.gdata.data.docs.DocumentListEntry;

/**
 * @author Laurent Carbonnaux
 */
public class TaskVisionFolder {

	private String id;
	private String name;

	public TaskVisionFolder(String id, String name) {
		this.id = id;
		this.name = name;
	}
	
	public TaskVisionFolder(DocumentListEntry entry) {
		if(entry!=null){
			this.id = ((MediaContent) entry.getContent()).getUri(); 
			this.name = entry.getTitle().getPlainText();
		}
	}

	public String getId() {
		return id;
	}

	public void setId(String url) {
		this.id = url;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
